# -*- coding: utf-8 -*-
# @Time    : 2020/3/16 11:51
# @Author  : Sunny
# @Site    : 
# @File    : urls.py
# @Software: PyCharm
# @WeChat public address : 程序猿与python之间的秘密

from django.conf.urls import url, include
from django.contrib import admin
from saasapp import views
from web.views import account
from web.views import home

urlpatterns = [
    url(r'^register/$', account.register, name='register'),  # 注册
    url(r'^send_code/$', account.send_code, name='send'),  # 短信发送
    url(r'^login/sms/$', account.login_sms, name='loginSms'),  # 短信登陆
    url(r'^image_code/$', account.image_code, name='image_code'),  # 获取图片验证码
    url(r'^login/$', account.login, name='login'),  # 用户名或者邮箱登陆
    url(r'^logout/$', account.logout, name='logout'),  # 注销
    url(r'^index/$', home.index, name='index'),  # 主页面

]
